<%@taglib uri="/WEB-INF/struts-html.tld"  prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html:form action="user">
    <table cellpadding="1" cellspacing="1">
        <tr>
            <td><bean:message key="label.login"/></td>
        </tr>
        <tr>
            <td><bean:message key="user.userName"/></td>
        </tr>
        <tr>
            <td><html:text property="userName"/></td>
        </tr>
        <tr>
            <td><bean:message key="user.password"/></td>
        </tr>
        <tr>
            <td><html:password property="password"/></td>
        </tr>
        <tr>
            <td><bean:message key="user.departement"/></td>
        </tr>
        <tr>
            <td>
                <html:select property="departement">
                    <logic:iterate id="listDepartement" name="listDepartement">
                        <option value="<bean:write name="listDepartement" property="id"/>"><bean:write name="listDepartement" property="namaBagian"/></option>
                    </logic:iterate>
                </html:select>
            </td>
        </tr>
        <tr>
            <td><html:submit><bean:message key="label.login"/></html:submit><html:hidden property="action" value="userLogin"/></td>
        </tr>
        <tr>
            <td>&raquo; <html:link action="#" styleClass="noLink"><bean:message key="user.lupaPassword"/></html:link></td>
        </tr>
    </table>
</html:form>